package tw.asap.plus.network.config;

import retrofit.Endpoint;

/**
 * Description:
 * Created:      [15/9/18]
 * Author:       [Yang]
 **/
public class QfEndpoint implements Endpoint{

    private String baseUrl;

    public void setUrl(String baseUrl){
        this.baseUrl = baseUrl;
    }

    @Override
    public String getUrl() {
        if(baseUrl == null) throw new IllegalStateException("url not set.");
        return baseUrl;
    }

    @Override
    public String getName() {
        return "default url";
    }
}
